package com.xoa.service.enterpriseTax;

import com.xoa.model.enterpriseTax.constructingUnit.ConstructingUnit;
import com.xoa.util.ToJson;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

public interface ConstruingUnitService {


    ToJson<ConstructingUnit> selectAllConstruingUnit(boolean useFlag,
                                                     Integer page,
                                                     Integer limit,
                                                     ConstructingUnit record);

    ToJson<ConstructingUnit> insertAllConstruingUnit(ConstructingUnit record);

    ToJson<ConstructingUnit> updateAllConstruingUnit(ConstructingUnit record);

    ToJson<ConstructingUnit> deleteAllConstruingUnit(Integer cuId);


    ToJson<ConstructingUnit> uploadConstructingUnit(MultipartFile file,
                                                    HttpServletRequest request,
                                                    HttpServletResponse response,
                                                    HttpSession session);

    ToJson<ConstructingUnit> selectAllConstruingUnit2();




}
